package application.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "phase_compositions")
public class PhaseCompositionsModel
{
    private List<PhaseCompositionModel> phaseCompositionModels = new ArrayList<PhaseCompositionModel>();

    @XmlElement(name = "phase_composition")
    public List<PhaseCompositionModel> getPhaseCompositionModels()
    {
        return phaseCompositionModels;
    }

    public void setPhaseCompositionModels(List<PhaseCompositionModel> phaseCompositionModels)
    {
        this.phaseCompositionModels = phaseCompositionModels;
    }

    public void addPhaseCompositionModel(PhaseCompositionModel phaseCompositionModel)
    {
        phaseCompositionModels.add(phaseCompositionModel);
    }
}
